using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;

using DomainModel.Abstract;
using DomainModel.Concrete;

namespace WebUI.Controllers
{
    public class ProductsController : Controller
    {
        private IProductsRepository productsRepository;

        public ProductsController()
        {
            productsRepository = new FakeProductsRepository();
        }

        public ViewResult List()
        {
            return View( productsRepository.Products.ToList() );
        }
    }
}
